package com.zhw.mapper;

import com.zhw.pojo.entry.CustomerContact;
import com.zhw.pojo.vo.ContactVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ContactMapper {

    List<ContactVO> list(Integer cusId);


    void save(CustomerContact customerContact);

    @Select("select * from customer_contact where id=#{id}")
    CustomerContact getByID(Integer id);

    void update(CustomerContact customerContact);

    @Delete("delete from customer_contact where id=#{id}")
    void deleteByID(Integer id);
}
